/*
 * Copyright (c) 2018, dreamkaylee@foxmail.com All Rights Reserved.
 */

package com.common.exception;

/**
 * 视图渲染异常
 * @author limk
 * @date 2018年2月13日 上午11:59:13
 * @version 1.0
 */
public class ViewException extends RuntimeException {
	
    /**
     * 
     */
    private static final long serialVersionUID = 3477352135014021365L;
    private String code;

    public ViewException() {
        super();
    }

    public ViewException(String message) {
        super(message);
    }

    public ViewException(String code, String message) {
        super(message);
        this.code = code;
    }

    public ViewException(Throwable cause) {
        super(cause);
    }

    public ViewException(String message, Throwable cause) {
        super(message, cause);
    }

    public ViewException(String code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
